package com.use.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.entity.Customer;
import com.use.service.ElectricityUseService;
import com.utils.JsonResult;

/**   
* @Title: ElectricityUseController.java 
* @Package com.use.controller 
* @author 孙梦楠 
* @date 2017年10月27日 下午1:59:41 
* @version V1.0.0   
*/

@RestController
@RequestMapping(value="/use")
public class ElectricityUseController {
	
	@Autowired
	private ElectricityUseService electricityuseservice;
	
	//日冻结数据
	@RequestMapping(value="",method=RequestMethod.POST)
	public JsonResult<Object[][]> listuse(@RequestBody Customer customer ){
		
		String customeraccount = customer.getCustomeraccount();
		
		return electricityuseservice.listUse(customeraccount,"F161_use");
		
		
	}
}
